﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_Popup.Master"
    CodeBehind="frm_Transfer_Product.aspx.vb" Inherits="I_PORT.frm_Transfer_Product"
    title="IRPC INTELLIGENT PORT SERVICE" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" language="javascript">
function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}
    </script>
    <asp:UpdatePanel ID="UpdatePanelDelayPopup" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="2" cellspacing="0">
                <tr>
                    <td style="width: 200px;" align="right">
                        <asp:Label ID="Label1" runat="server" Text="Date/Time :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;"></asp:TextBox>&nbsp;<asp:ImageButton
                            ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp; <asp:TextBox ID="txtStart" runat="server" Width="50px"></asp:TextBox>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px" onkeypress="return false;"></asp:TextBox>&nbsp;<asp:ImageButton
                            ID="ImgDateto" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:TextBox
                            ID="txtEnd" runat="server" Width="50px"></asp:TextBox>
                            <asp:CalendarExtender ID="CalendarExtender3" runat="server" 
                           TargetControlID="txtDate" Format="dd/MM/yyyy" 
                           PopupButtonID="ImgDate" Enabled="True"></asp:CalendarExtender>
                           <asp:CalendarExtender ID="CalendarExtenderxxdfe" runat="server" 
                           TargetControlID="txtDateTo" Format="dd/MM/yyyy" 
                           PopupButtonID="ImgDateto" Enabled="True"></asp:CalendarExtender>
                        <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtStart"
                            Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                        </asp:MaskedEditExtender>
                        <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtEnd"
                            Mask="99:99" MaskType="Time" AcceptNegative="Left" Enabled="True">
                        </asp:MaskedEditExtender>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label2" runat="server" Text="รถยนต์บรรทุกไม่เกิน 6 ล้อ :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTruck6" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label9" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label10" runat="server" Text="รถยนต์บรรทุก 8 หรือ 10 ล้อ :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTruck810" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label11" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label12" runat="server" Text="รถพ่วง :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTrailer" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label13" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label14" runat="server" Text="รถพ่วงมากกว่า 2 axle :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTrailer2" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>&nbsp;<asp:Label ID="Label15" runat="server" Text="เที่ยว" SkinID="lbtxt"></asp:Label>
                    </td>
                </tr>
                 <tr id="rowMT" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label4" runat="server" Text="MT :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtMT" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowPackage" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label5" runat="server" Text="PACKAGE :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtPackage" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowBAG" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label6" runat="server" Text="BAG :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtBAG" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowTank" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label7" runat="server" Text="DRUM :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtTank" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowPCS" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label8" runat="server" Text="PCS :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtPCS" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowLiter" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label16" runat="server" Text="LITER :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtLITER" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr id="rowRoll" runat="server" visible="false">
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label17" runat="server" Text="ROLL :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtROLL" runat="server" Width="60px" MaxLength="10" Text="0" onkeypress="return checkNumber(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" valign="top" align="right">
                        <asp:Label ID="Label3" runat="server" Text="Remark :" SkinID="lbtxt"></asp:Label>&nbsp;
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Height="55px" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 200px;" align="right">
                        &nbsp;
                    </td>
                    <td align="left">
                        <asp:Button ID="btnSave" runat="server" CssClass="ButtonStyle" Text="Save" />
                        <asp:Button ID="btnClose" runat="server" CssClass="ButtonStyle" Text="Close" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
